from channels.auth import AuthMiddlewareStack
from channels.routing import URLRouter, ProtocolTypeRouter
from django.urls import path

from ssh.websocket import WebSSH

application = ProtocolTypeRouter({
    "websocket": AuthMiddlewareStack(
        URLRouter([
            path("webssh/", WebSSH),
            # path(r"stats/", StatsConsumer),
        ])
    )
})